<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:88:"/www/wwwroot/v.zhongbaolb.cn/public/../application/admin/view/general/profile/index.html";i:1605113520;s:71:"/www/wwwroot/v.zhongbaolb.cn/application/admin/view/layout/default.html";i:1605772860;s:68:"/www/wwwroot/v.zhongbaolb.cn/application/admin/view/common/meta.html";i:1603638060;s:70:"/www/wwwroot/v.zhongbaolb.cn/application/admin/view/common/script.html";i:1603638060;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                               <!-- <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>-->
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <style>
    .profile-avatar-container {
        position: relative;
        width: 100px;
        margin: 0 auto;
    }

    .profile-avatar-container .profile-user-img {
        width: 100px;
        height: 100px;
    }

    .profile-avatar-container .profile-avatar-text {
        display: none;
    }

    .profile-avatar-container:hover .profile-avatar-text {
        display: block;
        position: absolute;
        height: 100px;
        width: 100px;
        background: #444;
        opacity: .6;
        color: #fff;
        top: 0;
        left: 0;
        line-height: 100px;
        text-align: center;
    }

    .profile-avatar-container button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100px;
        height: 100px;
        opacity: 0;
    }
</style>
<div class="row animated fadeInRight">
    <div class="col-md-4">
        <div class="box box-success">
            <div class="panel-heading">
                <?php echo __('Profile'); ?>
            </div>
            <div class="panel-body">

                <form id="update-form" class="layui-form" role="form" data-toggle="validator" method="POST" action="<?php echo url('general.profile/update'); ?>">
                    <?php echo token(); ?>
                    <input type="hidden" id="c-avatar" name="row[avatar]" value="<?php echo htmlentities($admin['avatar']); ?>"/>
                    <div class="box-body box-profile">

                        <!--<div class="profile-avatar-container">
                            <img class="profile-user-img img-responsive img-circle plupload" src="<?php echo htmlentities(cdnurl($admin['avatar'])); ?>" alt="">
                            <div class="profile-avatar-text img-circle"><?php echo __('Click to edit'); ?></div>
                            <button id="plupload-avatar" class="plupload" data-input-id="c-avatar"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button>
                        </div>

                        <h3 class="profile-username text-center"><?php echo htmlentities($admin['username']); ?></h3>

                        <p class="text-muted text-center"><?php echo htmlentities($admin['email']); ?></p>
                        <div class="form-group">
                            <label for="username" class="control-label"><?php echo __('Username'); ?>:</label>
                            <input type="text" class="form-control" id="username" name="row[username]" value="<?php echo htmlentities($admin['username']); ?>" disabled/>
                        </div>-->
                       <!-- <div class="form-group">
                            <label for="email" class="control-label"><?php echo __('Email'); ?>:</label>
                            <input type="text" class="form-control" id="email" name="row[email]" value="<?php echo htmlentities($admin['email']); ?>" data-rule="required;email"/>
                        </div>-->
                        <div class="form-group">
                            <label for="nickname" class="control-label"><?php echo __('Nickname'); ?>:</label>
                            <input type="text" class="form-control" id="nickname" name="row[nickname]" value="<?php echo htmlentities($admin['nickname']); ?>" data-rule="required"/>
                        </div>
                        <div class="form-group">
                            <label for="password" class="control-label"><?php echo __('Password'); ?>:</label>
                            <input type="password" class="form-control" id="password" placeholder="<?php echo __('Leave password blank if dont want to change'); ?>" autocomplete="new-password" name="row[password]" value="" data-rule="password"/>
                        </div>


                        <div class="form-group">
                            <label for="password" class="control-label">QQ:</label>
                            <input type="number" class="form-control" id="qq" placeholder="QQ"  name="row[qq]" value="<?php echo htmlentities($admin['qq']); ?>" data-rule=""/>
                        </div>

                        <?php if($is_admin == 1): ?>

                        <div class="form-group">
                            <label for="password" class="control-label">扣量:</label>
                            <input type="number" class="form-control" id="kouliang" placeholder="扣量"  name="row[kouliang]" value="<?php echo htmlentities($admin['kouliang']); ?>" data-rule=""/>
                            <span class="text-danger">20 代表每20次成功交易的订单扣一次,最大不能超过100）</span>
                        </div>


                        <div class="form-group">
                            <label for="password" class="control-label">代理费率:</label>
                            <input type="number" class="form-control" id="poundage" placeholder="代理费率"  name="row[poundage]" value="<?php echo htmlentities($admin['poundage']); ?>" data-rule=""/>
                            <span class="text-danger">提现手续费百分比，填 30 代表30%）</span>
                        </div>

                        <div class="form-group">
                            <label for="password" class="control-label">最低提现金额:</label>
                            <input type="number" class="form-control" id="min_fee" placeholder="最低提现金额"  name="row[min_fee]" value="<?php echo htmlentities($admin['min_fee']); ?>" data-rule=""/>
                            <span class="text-danger">代理最低提现金额（元）</span>
                        </div>

                        <div class="form-group">
                            <label for="password" class="control-label">最低发布金额:</label>
                            <input type="number" class="form-control" id="min_publish" placeholder="最低发布金额"  name="row[min_publish]" value="<?php echo htmlentities($admin['min_publish']); ?>" data-rule=""/>
                            <span class="text-danger">最低发布金额（元）</span>
                        </div>

                        <div class="form-group">
                            <label for="password" class="control-label">域名自动切换:</label>
                            <?php echo build_select('row[jiance]', $jiance, $admin['jiance'], ['class'=>'form-control', 'required'=>'']); ?>
                            <div class="layui-form-mid layui-word-aux">检测类型:<span style="color: red">wechat / qq
                                / douyin</span> 留空不执行<br>检测地址为:<span style="color: red"><?php echo $check_url; ?></span>
                                在宝塔设置计划任务1分钟执行一次<br> 获取有效域名地址为:<span style="color: red"><?php echo $check_url1; ?></span>
                            </div>

                        </div>


                        <div class="form-group">
                            <label for="password" class="control-label">检测token:</label>
                            <input type="text" class="form-control" id="jiance_tokan" placeholder="检测token"  name="row[jiance_token]" value="<?php echo htmlentities($admin['jiance_token']); ?>" data-rule=""/>
                            <span class="text-danger">域名检测接口网址91up.top</span>
                        </div>


                        <div class="form-group">
                            <label for="password" class="control-label">防封入口:</label>
                            <input type="text" class="form-control" id="wx_check_api" placeholder="防封入口"  name="row[wx_check_api]" value="<?php echo htmlentities($admin['wx_check_api']); ?>" data-rule=""/>
                            <span class="text-danger">填写则开启入口防封</span>
                        </div>

                        <div class="form-group">
                            <label for="password" class="control-label">(1) 微信支付:</label>
                            <?php echo build_select('row[pay_model]', $pay, $admin['pay_model'], ['class'=>'form-control', 'required'=>'required']); ?>
                        </div>

                       <!-- <div class="form-group">
                            <label for="password" class="control-label">(2) 支付宝支付:</label>
                            <?php echo build_select('row[pay_model1]', $pay, $admin['pay_model1'], ['class'=>'form-control', 'required'=>'required']); ?>
                        </div>-->
                    <?php endif; ?>

                        <div class="form-group">
                            <label for="password" class="control-label">短链接切换:</label>
                            <?php echo build_select('row[short]', $short, $admin['short'], ['class'=>'form-control', 'required'=>'']); ?>
                        </div>

                        <div class="form-group">
                            <button type="submit" class="btn btn-success"><?php echo __('Submit'); ?></button>
                            <button type="reset" class="btn btn-default"><?php echo __('Reset'); ?></button>
                        </div>

                    </div>
                </form>
            </div>
        </div>

    </div>
    <div class="col-md-8">
        <div class="panel panel-default panel-intro panel-nav">
            <div class="panel-heading">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list"></i> <?php echo __('Admin log'); ?></a></li>
                </ul>
            </div>
            <div class="panel-body">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade active in" id="one">
                        <div class="widget-body no-padding">
                            <div id="toolbar" class="toolbar">
                                <?php echo build_toolbar('refresh'); ?>
                            </div>
                            <table id="table" class="table layui-table  table-bordered table-hover" width="100%">

                            </table>

                        </div>
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require.js" data-main="/assets/js/require-backend.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>